<?php

session_start();
require '../class/securite.class.php';
$tableau = array("alexis" => "123456");
$droit = array("alexis" => 'ULTIME OF THE DEAD');
if (!empty($_POST['pwd']) && !empty($_POST['login'])) {
    if ($tableau[$_POST['login']] == $_POST['pwd']) {
        $_SESSION['id'] = key($tableau);
        echo '1';
    }
    else echo '0' ; 
}
else echo '0' ; 
?>
